Show:

Q expandable Class

This tool implements expandable containers that work on most modern browsers, including ones on touchscreens.

Constructor

Q expandable

(
  • $options
)

Parameters:

  • $options Array

    Options for the tool

    • title String

      Required. The title for the expandable.

    • content String

      The content. Required unless you pass "items" instead.

    • [items] Array optional

      An array of strings to wrap in elements and render in the content

    • [class] String optional

      If you use "items", optionally specify the class of the container elements for each item

    • [title] Integer optional

      A number, if any, to display when collapsed

    • [autoCollapseSiblings] Boolean optional

      Whether, when expanding an expandable, its siblings should be automatically collapsed.

Item Index